package com.yntx.usercenter.base.converter;

import com.yntx.usercenter.base.dto.TenantDTO;
import com.yntx.usercenter.base.dto.TenantUpdateDTO;
import com.yntx.usercenter.base.po.Tenant;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 租户转换器
 *
 * @author jielihaofeng
 * @date 2023/05/08
 */
@Mapper
public interface TenantConverter {

    TenantConverter INSTANCE = Mappers.getMapper(TenantConverter.class);

    Tenant tenantDTO2Tenant(TenantDTO dto);

    Tenant tenantUpdateDTO2Tenant(TenantUpdateDTO dto);

}
